Procedures and Collisions

Creating a program to write your initials became a long and labored affair. One mistake and the output your breed would write would be wrong. Finding the mistake would be labor intensive depending on the amount of programming commands listed in the Run Block.

Procedures are a means of simplifying your programming directions. Procedures are sections of code you can place anywhere in the programming window instead of in the Run Block itself. If you are writing code for Hero breed, place the code in the Hero character window section. Not in the Hero section of the Run Block. If you are writing code for the Enemy breed, place the code in the Enemy breed window section. Not the Enemy section of the Run Block.

To create a Procedure

  1. Select Procedure from Factory

  2. Drag the Procedure to the breed window section.

  3. Name the Procedure for reference

  4. Connect the programming commands to the Procedure

To use the procedure, you need to go to My Blocks, pick the Procedure's call block to use, and place in in the Run section for that breed.

  1. Go to My Blocks

  2. Pick the Procedure call block (same color and name of Procedure but square shape) for the breed being using it.

  3. Place the Procedure call block in the Run Block section for the breed.

Collision are where breeds collide into each other. The directions may be the that one or more breeds die, points get added, etc. The collision are found in the Collisions section of My Blocks. Every breed you create will automatically create the necessary collision blocks you will use. You only have to drag the collision blocks you need to the Collision window section.


With the program provided,



You are to create:

  1. A procedure for the Defender in the Defender window and name it "Defender Controls" (Drag a procedure into the Defender window from Factory)

  2. Connect the programming commands already found in the Defender window to the Defender Controls Procedure.

  3. Place a "Defender Controls" call block into the Run Forever Block to use the Defender programming. ("Defenders Controls" call block found in My Block in the Defender Section)

  4. For the Collisions, use the programming block examples in the collisions window to tell what happens when two breeds collide. You will need extras so type them in or drag from the factory.

In the Defender Controls Procedure, you are missing movement commands for your Defender Breed (have the Defender slide left or right). Fix this from your experience in having a breed write you initials.